package com.wanxi.test;



public class DoWhile {




    public static void main(String[] args) {
        int i = 1;
        int count = 0;
        int sum = 0;
        do {
            if (i % 2 == 0) {
                System.out.println(i);
                count++;
                sum += i;
            }
            i++;
        } while (i <= 100);
        System.out.println("个数为：" + count);
        System.out.println("和为：" + sum);
    }
}


